package com.aaa.dem1101.SafeLock;

/**
 * @Author: whj
 * @Version 1.0
 * @Date: 2022/10/31  17:06
 */
public class Test {
    public static void main(String[] args) throws InterruptedException {
        MyTicket ticket = new MyTicket();
        Thread t1 = new Thread(ticket, "a");
        Thread t2 = new Thread(ticket, "b");
        Thread t3 = new Thread(ticket, "c");
        Thread t4 = new Thread(ticket, "d");
        t1.start();
        t2.start();
        t3.start();
        t4.start();

    }
}
